<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../css/ivew.css">
    <script src="../../js/vue2.6.js"></script>
    <script src="../../js/ivew.js"></script>
</head>
<body>
<div id="app">
    <i-button type="primary" @click="open(false)">Open notice</i-button>
    <i-button @click="open(true)">Open notice(only title)</i-button>
</div>
<script>

    var Main = {
        methods: {
            open (nodesc) {
                this.$Notice.open({
                    title: 'Notification title',
                    desc: nodesc ? '' : 'Here is the notification description. Here is the notification description. '
                });
            }
        }
    }

    var Component = Vue.extend(Main)
    new Component().$mount('#app')
</script>
</body>
</html>